{% load markup %} {% for row in details.layout %} {% with col_size=row|length %} {% for col in row %} {{ col.name|capfirst }} {{ col.value }} {% endfor %} {% endwith %} {% endfor %}